<?php
$wid = Session::get('wid');
$m = new Model('vshop_index');
$m->find(array('wid'=>$wid));
$pages=array('pages/index/index'=>'装修页','pages/tc_index/tc_index'=>'同城','pages/zhct_index/zhct_index'=>'餐饮');
if($m->try_post()){
	$m->wid = $wid;
	$rs = $m->save();
	if($rs->id){
		$arr = array(
			'status' => 0,
			'message' => '操作成功',
			'url' => '',
			'callback' => '',
			'data' => ''
		);
	}else{
		$arr = array(
			'status' => 1,
			'message' => '操作失败',
			'url' => '',
			'callback' => '',
			'data' => ''
		);
	}
	echo json_encode($arr);exit;
}
